#计算每个班级学生总成绩
score = [[99,89,79,69],[98,88,78,68,58],[97,87,77]]

i = 1
for j in score:
    print("第{}班的总成绩为".format(i))
    x = 0
    for k in j:
        x=x+k
    print(x)
    i+=1
